home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1111 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news.nic.utwente.nl!news
  2. From: v.n.jeronimus@student.utwente.nl (V.N.Jeronimus)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.tools.owl
  4. Subject: Context Devices & co
  5. Date: 9 Jan 1996 12:25:38 GMT
  6. Organization: University of Twente, Enschede, The Netherlands
  7. Message-ID: <4ctms2$1ai@driene.student.utwente.nl>
  8. NNTP-Posting-Host: mat018105.student.utwente.nl
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=ISO-8859-1
  11. X-Newsreader: WinVN 0.99.5
  12.  
  13. Hi,
  14.  
  15. I just want a very simple programming concept:
  16.  
  17.  A part of my window needs to be repainted, because I used ScrollDC to scroll 
  18. the window to the left. All I want now is to build the new to-be-repainted 
  19. rectangle in memory first and than BITBLT it to my Client Area, because 
  20. rebuilding it on screen will make my Client Area blink while scrolling....
  21.  
  22. What I tried is something like this (All with OWL 2.5 & Borland C++ 4.52)
  23.  
  24. 1. I created a clientDC (TClientDC) of my client window;
  25. 2. I created a compatible memoryDC (TMemoryDC(clientDC)) of clientDC;
  26. 3. I build my new part that needs to be painted;
  27. 4. I call clientDC->BitBlt(rect,*memoryDC,TPoint(x,y),SRCCOPY).
  28.  
  29. But it does not work. From I example I found out that you can BitBlt a selected 
  30. object, but a rectangle from a DC can't be selected as a object..
  31.  
  32. Please, does some-one has a working solution???
  33.  
  34. regards,
  35.  
  36. Vincent Jeronimus.
  37.  
  38.